package com.da.javatest.leetCode;

/**
 * @author chenlida
 * @date 2019/1/17 14:21
 * @description
 */
public class Code551 {
    public boolean checkRecord(String s) {
        return !((s.indexOf("A") != s.lastIndexOf("A")) || s.contains("LLL"));
    }
}
